{% extends "../base_adminlte.html" %}

{% block content %}
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
    <div class="content-header">
    </div>

  <section class="content">
      <form  action="{% url 'applicationadd' %}" method="post">
          <table style="border-collapse:separate; border-spacing: 0px 10px;
            margin-left: 30%;margin-top: 5%;align-content: center;">
              <tr>
                <td>系统</td>
                  <td>
                        <select id='systemname' name="systemname" class="form-control"  >
                              <option value="" >请选择</option>
                                 {% for i in system %}
                                      <option value="{{ i }}">
                                          {{  i }}
                                      </option>
                                  {% endfor %}
                         </select>
                    </td>
                <td>*必填项</td>
            </tr>
                <tr style="height: 10px">
                    <td>模块</td>
                    <td><textarea type="text" name="module" class="form-control" cols="60" rows="3" ></textarea>
                       <label>*必填项</label>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>描述</td>
                    <td><textarea type="text" name="remark" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>模块安装路径</td>
                    <td><textarea type="text" name="install_path" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>模块日志路径</td>
                    <td><textarea type="text" name="log_path" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>模块配置路径</td>
                    <td><textarea type="text" name="config_path" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>模块端口</td>
                    <td><textarea type="text" name="modules_port" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>

               <tr style="height: 10px">
                    <td>用户名</td>
                    <td><textarea type="text" name="user_name" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>

                <tr style="height: 10px">
                    <td>集群模式</td>
                    <td><input type="text" name="redundancy_type" >
                  </td>
                </tr>

               <tr style="height: 10px">
                    <td>集群软件</td>
                    <td><input type="text" name="cluster_software"  >
                  </td>
                </tr>

               <tr style="height: 10px">
                    <td>存储</td>
                    <td><textarea type="text" name="storage" class="form-control" cols="60" rows="3" ></textarea>
                  </td>
                </tr>

               <tr style="height: 10px">
                    <td>ip</td>
                    <td>
                        <textarea type="text" name="ip" class="form-control" cols="60" rows="3" > </textarea>
                    <label>
                        ip以英文逗号间隔开
                    </label>
                  </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="提交" >
                    <button style="margin-left: 10%" onclick="location.href='/ansible/applicationlist'" type="button" value="取消" >取消</button></td>
              </tr>
            </table>
    </form>
  </section>
</div>
{% endblock %}
